<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::get('think', function () {
    return 'hello,ThinkPHP6!';
});

Route::get('hello/:name', 'index/hello');


/*
 * Route::resource('v1/monitor-projects', 'app\controller\v1\Monitor');
 *
 * 列表 index http://serverName/blog GET
 * 增加 save http://serverName/blog POST
 * 查看 read http://serverName/blog/128 GET
 * 修改 update http://serverName/blog/128 PUT
 * 删除 delete http://serverName/blog/128 DELETE
 * */
